<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>三元运算符比较最大值</title>
</head>
<body>
<script>
  var A = 88;
  var B = 66;
  var C = 28;

  var max = (A > B) ? ((A > C) ? A : C) : ((B > C) ? B : C);

  alert("最大值为：" + max);
</script>
</body>
</html>
